<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生列表</title>
</head>
<body>
	<button onclick="javascript:window.location.href='edit'">新增</button>
	<table border="=1" style="width: 800px;text-align: center;">
		<caption>学生列表</caption>
		<tr>
			<th>id</th><th>姓名</th><th>学号</th><th>性别</th><th>班级</th><th>课程</th>
		</tr>
		<c:forEach items="${students}" var="s">
			<tr>
				<td>${s.id}</td>
				<td>${s.name}</td>
				<td>${s.stuNum}</td>
				<td>${s.sex}</td>
				<td>${s.tbClass.name}</td>
				<td>${s.courseNames}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>